<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Admin</title>

    <!-- Bootstrap Core CSS -->
    <link href="<?php print URL; ?>admin/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="<?php print URL; ?>admin/css/sb-admin.css" rel="stylesheet">

    <!-- Morris Charts CSS -->
    <link href="<?php print URL; ?>admin/css/plugins/morris.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="<?php print URL; ?>admin/fonts2/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

    <div id="wrapper">

        <!-- Navigation -->
        <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.html">Admin</a>
            </div>
            <!-- Top Menu Items -->
            <ul class="nav navbar-right top-nav">
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> <?php print $_SESSION['admin']['username'];?><b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li class="divider"></li>
                        <li>
                            <a href="<?php print URL; ?>adminHome/signout"><i class="fa fa-fw fa-power-off"></i> Log Out</a>
                        </li>
                    </ul>
                </li>
            </ul>
            <!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens -->
            <div class="collapse navbar-collapse navbar-ex1-collapse">
                <ul class="nav navbar-nav side-nav">
                    <li class="active">
                        <a href="<?php print URL; ?>adminHome"><i class="fa fa-fw fa-dashboard"></i> Home</a>
                    </li>
                    <li>
                        <a href="<?php print URL; ?>adminCategories"><i class="fa fa-fw fa-bar-chart-o"></i> Categories</a>
                    </li>
					<li>
                        <a href="<?php print URL; ?>adminDigitalContent"><i class="fa fa-fw fa-bar-chart-o"></i> Digital Content</a>
                    </li>
					<li>
                        <a href="<?php print URL; ?>adminProducts"><i class="fa fa-fw fa-bar-chart-o"></i> Products</a>
                    </li>
                    <?php 
                    if(Helper::isSuperAdmin()) {
                    ?>
                    <li>
                        <a href="<?php print URL; ?>adminBreakingNews"><i class="fa fa-fw fa-bar-chart-o"></i> BreakingNews</a>
                    </li>
                    <li>
                        <a href="<?php print URL; ?>adminComments"><i class="fa fa-fw fa-edit"></i> Comments</a>
                    </li>
                    <li>
                        <a href="<?php print URL; ?>votes"><i class="fa fa-fw fa-desktop"></i> Votes</a>
                    </li>
                    <li>
                        <a href="<?php print URL; ?>adminAccounting"><i class="fa fa-fw fa-desktop"></i> Sold Items List</a>
                    </li>
					<li>
                        <a href="<?php print URL; ?>adminReporting"><i class="fa fa-fw fa-desktop"></i>Invoices</a>
                    </li>
					<li>
                        <a href="<?php print URL; ?>adminSlideshow"><i class="fa fa-fw fa-desktop"></i>SlideShows</a>
                    </li>
                    <?php 
                    }
                    ?>
                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </nav>

        <div id="page-wrapper">

            <div class="container-fluid">

                <!-- Page Heading -->
                <div class="row">
                    <div class="col-lg-12">
                        <h1 class="page-header">
                            Admin <small>Control Panel</small>
                        </h1>
